/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utfpr.cp.test.executable;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;

/**
 *
 * @author COINF-PROFESSOR-07
 */
public class PageDownload {
    
    public static void main(String[] args) {
        try {
            URL google = new URL("http://www.utfpr.edu.br/");
            URLConnection yc = google.openConnection();
            BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));
            String inputLine;
            while ((inputLine = in.readLine()) != null) {
                System.out.println(inputLine);
            }
            in.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
 
}
